package com.lipy.dubboconsumer;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;

/**
 * @Description japidoc 生成文档执行类 （执行main方法即可）
 * @Date 2020/11/5 15:55
 * @Created by lipye
 */
public class ApiDoc {
    public static void main(String[] args) {
        DocsConfig config = new DocsConfig();
        // root project path  your springboot project path
        config.setProjectPath("D:\\学习\\giteerepo\\dubbo-demo\\dubbo-consumer");
        config.setProjectName("ProjectName"); // project name
        config.setApiVersion("V1.0");       // api version
        config.setDocsPath("D:\\学习\\giteerepo\\dubbo-demo\\dubbo-consumer"); // api docs target path
        config.setAutoGenerate(Boolean.TRUE);  // auto generate
        Docs.buildHtmlDocs(config); // execute to generate
    }
}
